#include "food.h"

Food::Food(int id, QString name, double price, QString introduce, QString picPath)
{
    //为对应的私有变量赋值
    m_id = id;
    m_name = name;
    m_price = price;
    m_introduce = introduce;
    m_picPath = picPath;
}

int Food::getId()
{
    return m_id;
}

QString Food::getName()
{
    return m_name;
}

double Food::getPrice()
{
    return m_price;
}

QString Food::getIntroduce()
{
    return m_introduce;
}

QString Food::getPicPath()
{
    return m_picPath;
}
